package com.clp.protocol.iec104.client.master_state;

import com.clp.protocol.iec104.connect.state.AbstractState;

/**
 * 抽象主站状态：绑定主站、实现定时任务功能。
 */
public abstract class AbstractMasterState extends AbstractState implements MasterState {
    /**
     * 主站
     */
    protected final MasterStateManager stateManager;

    protected AbstractMasterState(MasterStateManager stateManager) {
        super(stateManager.getMaster().scheduledExecutor());
        this.stateManager = stateManager;
    }
}
